package com.dk.service.impl;

import com.dk.WR;
import com.dk.mapper.UserMapper;
import com.dk.pojo.User;
import com.dk.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zh
 * @Description TODO
 * @createTime 2023/11/23
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;


    @Override
    @WR("ds1")
    public List<User> selectUser() {
        return userMapper.selectByExample(null);
    }

    @Override
    @WR("ds2")
    public void insertUser(User user) {
        userMapper.insertSelective(user);
    }
}
